﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace ConsolidationTool.WebParts.ControlTemplates.FS.Template
{
    public partial class KoScriptPart : UserControl
    {
        public string ListTitle { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            string partFix = ListTitle.Split('_')[0];
            Page.ClientScript.RegisterClientScriptInclude("budgetscript", "/_layouts/ConsolidationTool.WebParts/" + partFix + "/" + ListTitle + ".js"); ;
        }
    }
}
